<%- include('../../components/header'); %>

<div class="pageBox">
    <div class="container">
        <h4 class="latest-text w3_latest_text" style="margin-left:0!important;">平板加工报价</h4>
        <div class="quoBox">
            <div class="quoBoxCon">
                <div>
                    <h5>
                        材料
                    </h5>
                    <div class="selectBoxS">
                        <select name="" id="">
                            <option value="">Q235</option>
                            <option value="">304</option>
                            <option value="">C45</option>
                            <option value="">316</option>
                            <option value="">316L</option>
                            <option value="">SKD11</option>
                            <option value="">尼龙</option>
                        </select>
                    </div>
                </div>


                <div>
                    <h5>
                        规格
                    </h5>
                    <div class="inputBoxs">
                        <p>
                            <span>长(mm)</span>
                            <input type="text">
                        </p>
                        <p>
                            <span>宽(mm)</span>
                            <input type="text">
                        </p>
                        <p style="margin-top:10px;">
                            <span>高(mm)</span>
                            <input type="text">
                        </p>
                    </div>
                </div>

                <div>
                    <h5>
                        通槽 
                        <span class="whatsDet" data-toggle="modal" data-target="#tongcao" >这是什么？</span>
                    </h5>
                    <div class="radioBoxS">
                        <label for="tcY">
                            <input type="radio" id="tcY" name="tc"> 是
                        </label>
                        <label for="tcN">
                            <input type="radio" id="tcN" name="tc"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table>
                            <tr>
                                <td>序号</td>
                                <td>长（mm）</td>
                                <td>宽（mm）</td>
                                <td>深（mm）</td>
                                <td>数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addTCItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div>
                    <h5>
                        抠槽
                        <span class="whatsDet" data-toggle="modal" data-target="#koucao" >这是什么？</span>
                    </h5>
                    <div class="radioBoxS">
                        <label for="kcY">
                            <input type="radio" id="kcY" name="kc"> 是
                        </label>
                        <label for="kcN">
                            <input type="radio" id="kcN" name="kc"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table>
                            <tr>
                                <td>序号</td>
                                <td>长（mm）</td>
                                <td>宽（mm）</td>
                                <td>深（mm）</td>
                                <td>数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addKCItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div>
                    <h5>
                        阶梯抠槽
                        <span class="whatsDet" data-toggle="modal" data-target="#jietikoucao" >这是什么？</span>
                        
                    </h5>
                    <div class="radioBoxS">
                        <label for="jtkcY">
                            <input type="radio" id="jtkcY" name="jtkc"> 是
                        </label>
                        <label for="jtkcN">
                            <input type="radio" id="jtkcN" name="jtkc"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table>
                            <tr>
                                <td>序号</td>
                                <td>长（mm）</td>
                                <td>宽（mm）</td>
                                <td>深（mm）</td>
                                <td>数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addJTKCItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>

                </div>

                <div>
                    <h5>
                        单边阶梯
                        <span class="whatsDet" data-toggle="modal" data-target="#danbianjieti" >这是什么？</span>
                        
                    </h5>
                    <div class="radioBoxS">
                        <label for="dbjtY">
                            <input type="radio" id="dbjtY" name="dbjt"> 是
                        </label>
                        <label for="dbjtN">
                            <input type="radio" id="dbjtN" name="dbjt"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table>
                            <tr>
                                <td>序号</td>
                                <td>长（mm）</td>
                                <td>宽（mm）</td>
                                <td>深（mm）</td>
                                <td>数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>1</td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addDBJTItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div>
                    <h5>
                        销孔
                    </h5>
                    <div class="radioBoxS">
                        <label for="xkY">
                            <input type="radio" id="xkY" name="xk"> 是
                        </label>
                        <label for="xkN">
                            <input type="radio" id="xkN" name="xk"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table  style="width:50%;">
                            <tr>
                                <td width="10%" style="width:10%;">规格</td>
                                <td width="10%"  style="width:10%;">数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <select name="" id="">
                                        <option value="">
                                            φ3
                                        </option>
                                        <option value="">
                                            φ4
                                        </option>
                                        <option value="">
                                            φ6
                                        </option>
                                        <option value="">
                                            φ8
                                        </option>
                                        <option value="">
                                            φ10
                                        </option>
                                        <option value="">
                                            φ12
                                        </option>
                                        <option value="">
                                            φ14
                                        </option>
                                        <option value="">
                                            φ16
                                        </option>
                                        <option value="">
                                            φ18
                                        </option>
                                    </select>
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addxkItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div>
                    <h5>
                        通孔
                    </h5>
                    <div class="radioBoxS">
                        <label for="tkY">
                            <input type="radio" id="tkY" name="tk"> 是
                        </label>
                        <label for="tkN">
                            <input type="radio" id="tkN" name="tk"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table  style="width:50%;">
                            <tr>
                                <td width="10%" style="width:10%;">规格</td>
                                <td width="10%"  style="width:10%;">数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <select name="" id="">
                                        <option value="">
                                            M3
                                        </option>
                                        <option value="">
                                            M4
                                        </option>
                                        <option value="">
                                            M5
                                        </option>
                                        <option value="">
                                            M6
                                        </option>
                                        <option value="">
                                            M8
                                        </option>
                                        <option value="">
                                            M10
                                        </option>
                                        <option value="">
                                            M12
                                        </option>
                                        <option value="">
                                            M14
                                        </option>
                                        <option value="">
                                            M16
                                        </option>
                                    </select>
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addtkItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>


                <div>
                    <h5>
                        沉孔
                    </h5>
                    <div class="radioBoxS">
                        <label for="ckY">
                            <input type="radio" id="ckY" name="ck"> 是
                        </label>
                        <label for="ckN">
                            <input type="radio" id="ckN" name="ck"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table  style="width:50%;">
                            <tr>
                                <td width="10%" style="width:10%;">规格</td>
                                <td width="10%"  style="width:10%;">数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <select name="" id="">
                                        <option value="">
                                            M3
                                        </option>
                                        <option value="">
                                            M4
                                        </option>
                                        <option value="">
                                            M5
                                        </option>
                                        <option value="">
                                            M6
                                        </option>
                                        <option value="">
                                            M8
                                        </option>
                                        <option value="">
                                            M10
                                        </option>
                                        <option value="">
                                            M12
                                        </option>
                                        <option value="">
                                            M14
                                        </option>
                                        <option value="">
                                            M16
                                        </option>
                                    </select>
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addckItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>



                <div>
                    <h5>
                        螺纹孔
                    </h5>
                    <div class="radioBoxS">
                        <label for="lwkY">
                            <input type="radio" id="lwkY" name="lwk"> 是
                        </label>
                        <label for="lwkN">
                            <input type="radio" id="lwkN" name="lwk"> 否
                        </label>
                    </div>
                    <div class="scaleBox">
                        <table  style="width:50%;">
                            <tr>
                                <td width="10%" style="width:10%;">规格</td>
                                <td width="10%"  style="width:10%;">数量（个）</td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <select name="" id="">
                                        <option value="">
                                            M3
                                        </option>
                                        <option value="">
                                            M4
                                        </option>
                                        <option value="">
                                            M5
                                        </option>
                                        <option value="">
                                            M6
                                        </option>
                                        <option value="">
                                            M8
                                        </option>
                                        <option value="">
                                            M10
                                        </option>
                                        <option value="">
                                            M12
                                        </option>
                                        <option value="">
                                            M14
                                        </option>
                                        <option value="">
                                            M16
                                        </option>
                                    </select>
                                </td>
                                <td>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="addlwkItem ">+添加规格</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>




                <div>
                    <h5>
                        表面粗糙度
                    </h5>
                    <div class="selectBoxS">
                        <select name="" id="">
                            <option value="">12.5</option>
                            <option value="">6.3</option>
                            <option value="">3.2</option>
                            <option value="">1.6</option>
                            <option value="">0.8</option>
                        </select>
                    </div>
                </div>

                <div>
                    <h5>
                        热处理
                    </h5>
                    <div class="selectBoxS">
                        <select name="" id="">
                            <option value="">无</option>
                            <option value="">调质</option>
                            <option value="">淬火</option>
                        </select>
                    </div>
                </div>


                <div>
                    <h5>
                        表面处理
                    </h5>
                    <div class="selectBoxS">
                        <select name="" id="">
                            <option value="">无</option>
                            <option value="">镀锌</option>
                            <option value="">镀镍</option>
                            <option value="">镀铬</option>
                            <option value="">喷砂氧化</option>
                            <option value="">发黑</option>
                        </select>
                    </div>
                </div>




                <div class="orderCheck">
                    <div>
                        <input type="button" value="点击查询单价">
                        <div>

                            <table>
                                <tr>
                                    <td>
                                        <span>
                                            材料：
                                        </span>
                                        <em>
                                            Q235
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            表面粗糙度：
                                        </span>
                                        <em>
                                            3.2
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            通孔：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <span>
                                            规格：
                                        </span>
                                        <em>
                                            100*100*100
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            热处理：
                                        </span>
                                        <em>
                                            无
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            沉孔：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <span>
                                            销孔：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            表面处理：
                                        </span>
                                        <em>
                                            无
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            螺纹孔：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <span>
                                            通槽：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            阶梯抠槽：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <span>
                                            抠槽：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                    <td>
                                        <span>
                                            单边抠槽：
                                        </span>
                                        <em>
                                            4种规格
                                        </em>

                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <%- include('../../components/form-right'); %>
        </div>
        
    </div>


<!-- bootstrap-pop-up 通槽是什么-->
<div class="modal video-modal fade" id="tongcao" tabindex="-1" role="dialog" aria-labelledby="tongcao">
    <div class="modal-dialog" role="document" style="width:700px;">
        <div class="modal-content">
            <div class="modal-header">
                通槽的定义详情
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="imgDet" >
                <p>
                    <img src="/images/tongcao01.png" alt="" width="80%">
                </p>
                <p>
                    <img src="/images/tongcao02.png" alt="" width="50%" style="margin-top:20px;">  
                </p>
                                  
            </div>                
        </div>
    </div>
</div>

<!-- bootstrap-pop-up 通槽是什么-->

<!-- bootstrap-pop-up 抠槽是什么-->
<div class="modal video-modal fade" id="koucao" tabindex="-1" role="dialog" aria-labelledby="koucao">
    <div class="modal-dialog" role="document"  style="width:700px;">
        <div class="modal-content">
            <div class="modal-header">
                抠槽的定义详情
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="imgDet" >
                <p>
                        <img src="/images/koucao01.png" alt="" width="98%">
                </p>
                <p style="overflow:hidden;">
                        <img src="/images/koucao02.png" alt="" width="40%">        
                        <img src="/images/koucao03.png" alt="" width="40%">     
                </p>
                               
            </div>                
        </div>
    </div>
</div>

<!-- bootstrap-pop-up 抠槽是什么-->

<!-- bootstrap-pop-up 阶梯抠槽是什么-->
<div class="modal video-modal fade" id="jietikoucao" tabindex="-1" role="dialog" aria-labelledby="jietikoucao">
    <div class="modal-dialog" role="document"  style="width:700px;">
        <div class="modal-content">
            <div class="modal-header">
                阶梯抠槽的定义详情
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="imgDet" >
                <p>
                        <img src="/images/jietikoucao01.png" alt="" width="100%">
                </p>
                <p style="overflow:hidden;">
                        <img src="/images/jietikoucao02.png" alt="" width="40%">        
                </p>
                               
            </div>                
        </div>
    </div>
</div>

<!-- bootstrap-pop-up 抠槽是什么-->

<!-- bootstrap-pop-up 单边阶梯是什么-->
<div class="modal video-modal fade" id="danbianjieti" tabindex="-1" role="dialog" aria-labelledby="danbianjieti">
    <div class="modal-dialog" role="document"  style="width:700px;">
        <div class="modal-content">
            <div class="modal-header">
                单边阶梯的定义详情
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="imgDet" >
                <p>
                        <img src="/images/danbianjieti01.png" alt="" width="100%">
                </p>
                <p style="overflow:hidden;">
                        <img src="/images/danbianjieti02.png" alt="" width="40%">        
                </p>
                               
            </div>                
        </div>
    </div>
</div>
<!-- bootstrap-pop-up 单边阶梯是什么-->
</div>

<script>

        //通槽  抠槽 阶梯抠槽 单边阶梯的通用方法
        function showSizeBox(DomInpName, DomInpRadio, addBtn, addBtnName) {
            DomInpName.change(function () {
                if (DomInpRadio.prop('checked')) {
                    //获取是否选中 并判断是否显示 规格输入 盒子；
                    DomInpRadio.parent("label").parent("div").siblings("div.scaleBox").show();
                } else {
                    DomInpRadio.closest("div").siblings("div.scaleBox").hide();
                }
            });
            // 通槽、添加新元素
            var indexNum = 1;
            $(document).on("click", addBtn, function () {
                indexNum = indexNum + 1;
                $(this).hide();
                $(this).closest("table").append('<tr><td>' + indexNum + '</td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><span class=' + addBtnName + '>+添加规格</span></td></tr>')
            });
        };

        //通槽 
        showSizeBox($("input[name='tc']"), $("#tcY"), ".addTCItem","addTCItem");
        //抠槽
        showSizeBox($("input[name='kc']"), $("#kcY"), ".addKCItem","addKCItem");
        // //阶梯抠槽
        showSizeBox($("input[name='jtkc']"), $("#jtkcY"), ".addJTKCItem", "addJTKCItem" );
        // //单边阶梯
        showSizeBox($("input[name='dbjt']"), $("#dbjtY"), ".addDBJTItem", "addDBJTItem");


        //销孔的通用方法
        function showSizeBoxOther(DomInpName, DomInpRadio, addBtn, addBtnName) {
            DomInpName.change(function () {
                if (DomInpRadio.prop('checked')) {
                    //获取是否选中 并判断是否显示 规格输入 盒子；
                    DomInpRadio.parent("label").parent("div").siblings("div.scaleBox").show();
                } else {
                    DomInpRadio.closest("div").siblings("div.scaleBox").hide();
                }
            });
            // 通槽、添加新元素
            $(document).on("click", addBtn, function () {
                $(this).hide();
                $(this).closest("table").append(
                    `'<tr>
                        <td>
                            <select name="" id="">
                                <option value="">
                                    φ3
                                </option>
                                <option value="">
                                    φ4
                                </option>
                                <option value="">
                                    φ6
                                </option>
                                <option value="">
                                    φ8
                                </option>
                                <option value="">
                                    φ10
                                </option>
                                <option value="">
                                    φ12
                                </option>
                                <option value="">
                                    φ14
                                </option>
                                <option value="">
                                    φ16
                                </option>
                                <option value="">
                                    φ18
                                </option>
                            </select>
                        </td>
                        <td>
                            <input type="text">
                        </td>
                        <td>
                            <span class="addxkItem">+添加规格</span>
                        </td>
                    </tr>'`
                )
            });
        };
        showSizeBoxOther($("input[name='xk']"), $("#xkY"), ".addxkItem", "addxkItem");

        //通孔\沉孔\螺纹孔的通用方法
        function showSizeBoxOther2(DomInpName, DomInpRadio, addBtn, addBtnName) {
            DomInpName.change(function () {
                if (DomInpRadio.prop('checked')) {
                    //获取是否选中 并判断是否显示 规格输入 盒子；
                    DomInpRadio.parent("label").parent("div").siblings("div.scaleBox").show();
                } else {
                    DomInpRadio.closest("div").siblings("div.scaleBox").hide();
                }
            });
            // 通槽、添加新元素
            $(document).on("click", addBtn, function () {
                $(this).hide();
                $(this).closest("table").append(
                    `'<tr>
                        <td>
                            <select name="" id="">
                                
                                <option value="">
                                        M3
                                </option>
                                <option value="">
                                    M4
                                </option>
                                <option value="">
                                        M5
                                </option>
                                <option value="">
                                        M6
                                </option>
                                <option value="">
                                        M8
                                </option>
                                <option value="">
                                        M10
                                </option>
                                <option value="">
                                        M12
                                </option>
                                <option value="">
                                        M14
                                </option>
                                <option value="">
                                    M16
                                </option>
                            </select>
                        </td>
                        <td>
                            <input type="text">
                        </td>
                        <td>
                            <span class="`+addBtnName+`">+添加规格</span>
                        </td>
                    </tr>'`
                )
            });
        };
        showSizeBoxOther2($("input[name='tk']"), $("#tkY"), ".addtkItem", "addtkItem");
        showSizeBoxOther2($("input[name='ck']"), $("#ckY"), ".addckItem", "addckItem");
        showSizeBoxOther2($("input[name='lwk']"), $("#lwkY"), ".addlwkItem", "addlwkItem");
        
</script>    
<%- include('../../components/footer'); %>